package com.hlhj.carview.presenter

import android.content.Context
import com.example.mymvp.mvp.BasePresenter
import com.hlhj.carview.Iview.AddCarView
import com.hlhj.carview.bean.MyBaseBean
import com.hlhj.carview.module.AddCarModule

/**
 * Created by Never Fear   on 2018\12\21 0021.
Never More....
 */
class AddCarPresenter :BasePresenter<AddCarModule,AddCarView>(), AddCarView {
    override fun setAddCarResult(myBaseBean: MyBaseBean) {
        view?.setAddCarResult(myBaseBean)
    }

    fun addcar(car_number:String,number_type:String,car_type:String,car_appearance:String,img:String,c: Context){
        module?.addCar(car_number, number_type, car_type, car_appearance, img, c)
    }
    override fun createModule() {
        module=AddCarModule()
        module.listener=this
    }
}